//package com.allwees.data.dataport.module.useraction.service.impl;
//
//import org.apache.commons.collections4.CollectionUtils;
//import org.springframework.stereotype.Service;
//
//import com.allwees.bs.core.model.useraction.bo.model.ProductShow;
//import com.allwees.data.dataport.module.useraction.entity.ProductShowLog;
//import com.allwees.data.dataport.module.useraction.repository.es.ProductShowLogEsRepository;
//import com.allwees.data.dataport.module.useraction.service.ProductShowLogService;
//
///**
// *
// *
// * @author yangylsky
// * @since 2020-03-30
// *
// */
//@Service
//public class ProductShowLogServiceImpl extends LogServiceImpl<ProductShowLog, ProductShowLogEsRepository> implements ProductShowLogService {
//    @Override
//    public void saveToEs(ProductShowLog productShowLog) {
//    	if(CollectionUtils.isNotEmpty(productShowLog.getShowItems())) {
//        	for(int i = 1; i <= productShowLog.getShowItems().size(); i++) {
//        		_logProductShowLog(productShowLog, i, productShowLog.getShowItems().get(i - 1));
//        	}
//    	}
//    }
//
//	private void _logProductShowLog(ProductShowLog productShowLog, Integer pos, ProductShow item) {
//		ProductShowLog toSaveData = ProductShowLog.ofWithOmit(productShowLog, "showItems");
//		toSaveData.setProductUuid(item.getProductUuid());
//		toSaveData.setPos(item.getPos());
//    	super.saveToEs(toSaveData);
//	}
//}
